<?php get_backend_header(array(
        'ckeditor/ckeditor.js',
	'jquery/validate/jquery.validate.js',
	'cms.js',
), array(
	'jquery/ui.jqgrid.css'
)); ?>

<h2 class="title"> View Information</h2>

<form id="cms_form" name="cms_form" class="form">
	<input type="hidden" id="information_id" name="information_id" value="<?php echo $information_id; ?>" />

            <div class="unit">
                
                
                <div class="line">
                        <label for="" class="">Content type:</label>
                        <div class="field" style="height:auto">
                            <?php echo $information_type; ?>
                        </div>
                </div>
                
                <div class="line">
                        <label for="" class="">Content:</label>
                        <div class="field" style="height:auto; width:auto;">
                            <?php echo $content;?></textarea>
                        </div>
                </div>


            </div>


        <div class ="clear"></div>
        
        <div class="buttons">
		
		<a href="<?php echo site_url('cms/list_records'); ?>" id="cancel" name="cancel">Back</a>
	</div>

</form>

<script type="text/javascript">
        cmsRules();


	$('#cancel').button({
		icons: {primary: 'ui-icon-arrowreturn-1-w'}
	});	
	
	$('#save').button({
		icons: {primary: 'ui-icon-disk'}
	}).click(function(e) {
		$(this).removeClass('ui-state-focus');
		$('#cms_form').submit();
		e.preventDefault();
	});	

</script>

<?php get_backend_footer(); ?>
